package com.gitee.yannzh.rune.support.crud.base;

/**
 * @author Yann
 * @date 2024/9/21 13:40
 * @description
 * @since 1.0.0
 */
public interface ServiceProxy {

    default <T> void beforeSave(T entity) throws Exception {

    }


    default <T> void afterSave(T entity) throws Exception {

    }

    default <T> void beforeBatchSave(Iterable<T> entities) throws Exception {
    }

    default <T> void afterBatchSave(Iterable<T> entities) throws Exception {
    }

    default <T> void beforeUpdate(T entity) throws Exception {
    }


    default <T> void afterUpdate(T entity) throws Exception {
    }


    default <T> void beforeRemove(T entity) throws Exception {
    }


    default <T> void afterRemove(T entity) throws Exception {
    }
}
